package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.StrategyCommentQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCommentService {
    /**
     * 添加一个攻略评论
     * @param strategyComment
     */
    void save(StrategyComment strategyComment);


    /**
     * 修改一个攻略评论的信息
     * @param strategyComment
     */
    void update(StrategyComment strategyComment);

    /**
     * 获取一个攻略评论对象
     * @param id
     * @return
     */
    StrategyComment get(String id);



    /**
     * 分页查询所有攻略评论信息
     * @return
     */
    Page<StrategyComment> query(StrategyCommentQueryObject qo);


    void addComment(StrategyComment strategyComment, UserInfo userInfo);

    void commentThumb(String cid, UserInfo userInfo);
}
